﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Vit.Web.Models
{
    public class ObjectRelation
    {
        [Key]
        [Column(Order = 1)]
        [StringLength(256)]
        [Required]
        public string Object1Type { get; set; }
        [Key]
        [Column(Order = 2)]
        [StringLength(256)]
        [Required]
        public string Object2Type { get; set; }
        [Key]
        [Column(Order = 3)]
        [StringLength(256)]
        [Required]
        public string Object1ID { get; set; }
        [Key]
        [Column(Order = 4)]
        [StringLength(256)]
        [Required]
        public string Object2ID { get; set; }
        [StringLength(500)]
        public string RelationType { get; set; }
        public DateTime? BeginDate { get; set; }
        public DateTime? EndDate { get; set; }
    }
}
